// @description 忘记密码
// @author 冯世玉
// @date 2018-05-16

import axios from "../index.js"

var forgetpassword= {
    // 个人忘记密码 --- 发送验证码
	  loginSendCode:function(data,success,failure){
		  return axios.post("/student/loginSendCode",data,success,failure);
    },

    // 个人更改密码
    forgetPwd:function(data,success,failure){
		  return axios.post("/student/forgetPwd",data,success,failure);
    },

    // 企业更改密码 --发送邮箱
    sendEmail:function(data,success,failure){
		  return axios.post("/admin/sendResetEmail",data,success,failure);
    },

    // 企业更改密码--重置密码
    resetPassword:function(data,success,failure){
		  return axios.post("/admin/resetPassword",data,success,failure);
    },
    

}

export default forgetpassword